#ifndef __UARTTOOL_H
#define __UARTTOOL_H

//打开串口设备
int myserialOpen (const char *device, const int baud);

//通过串口发送字符
void serialSendstring (const int fd, const unsigned char *s, int len);

//从串口读取字符串
int serialGetstring (const int fd, unsigned char *buffer);

#define SERIAL_DEV "/dev/ttyS5" //串口设备路径
#define BAUD 115200 //波特率

#endif